package com.situ.mall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orders")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String orderNumber;//订单号

    private Integer orderTypeId;//订单类型id

    private String status;//订单状态：-1未支付；0未被接单；1已被接单；2陪诊中；3待确认；4已完成；5已评价；6已取消

    private BigDecimal money;//订单总价

    private LocalDateTime createTime;//订单创建时间

    private LocalDateTime finishTime;//订单完成时间

    private String situation;//病人情况

    private String suggestion;//医生建议

    private Integer memberEva;//用户评价

    private Integer workerEva;//陪诊员评价

    // 注：用户id为下单的用户，患者不一定是用户本人
    private Integer memberId;//用户id

    private String memberTel;//患者联系方式

    private String memberName;//患者姓名

    private String memberDetail;//患者信息

    private LocalDate clinicTime;//就诊时间

    private String hospital;//医院

    private Integer workerId;//陪诊员id

    private String isAccept;//陪诊员是否接受该订单

}
